package com.exam.online.system.service;

import com.exam.online.system.entity.Role;
import com.exam.online.system.entity.Student;
import com.exam.online.system.entity.Teacher;
import com.exam.online.system.util.PageModel;

import java.util.List;

/**
 * @author zp
 * @program online-exam-system
 * @description
 * @create 2019-05-05 19:49
 **/
public interface UserService {


    Teacher teacherLogin(String account, String password);

    Student stuLoggin(String account, String password);

    List<Role> findRoles();

    Integer registerStudent(String account, String password, Integer sex, Integer grade,String name,Integer stuNum, String courseList);

    PageModel getAllCourse(Integer pageNo, Integer pageSize);

    Integer registerTeacher(String account, String password, Integer courseId, String name, Integer sex);

    PageModel getAllTeacher(Integer pageNo, Integer pageSize);

    PageModel getAllStudent(Integer pageNo, Integer pageSize);

    Integer editTeacher(Integer teacherId,String account, String password,String name);

    Teacher getTeacherById(Integer teacherId);

    Integer deleteTeacher(Integer teacherId);

    Integer deleteStu(Integer stuId);

    Integer editStu(Integer stuId, String account, String password, String name, Integer grade);

    Student getStuById(Integer stuId);

    boolean selectBystuNum(Integer stuNum);
}
